package com.yeren.innerClass;

public class NiMIngNeiBuLei {
	public static void main(String[] args) {
		Xoo xoo=new Xoo();
		Xoo x1=new Xoo(){};
		
		Xoo x2=new Xoo(){
			public void test(){
			System.out.println("X2 test");	
			}
		};
		x2.test();
		//Yoo yoo=new Yoo();
		Yoo yoo=new Yoo(){};//
		//Woo woo=new Woo(){};
		Woo woo=new Woo(){
			public void test(){
				System.out.println("Woo test");
			}
		};
		woo.test();
	}

}

interface Yoo{
	
}
interface Woo{
	void test();
}

class Xoo{
	public void test(){
		System.out.println("Xoo test()");
	}
}